package com.hoshiibuy.veriCenter.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.hoshiibuy.veriCenter.result.Result;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;

/**
 * 用户验证控制器
 * 
 * @author Mr.wu
 *
 */
@RestController
@RequestMapping("/user")
@Api(tags = "用户验证接口")
public class UserVeriController {

	@RequestMapping(value = "/veriReal", method = { RequestMethod.POST, RequestMethod.GET })
	@ApiOperation(value = "用户实名验证接口")
	@ApiImplicitParams({ @ApiImplicitParam(name = "realName", value = "真实姓名", dataType = "String", required = true),
			@ApiImplicitParam(name = "idNo", value = "身份证号码", dataType = "String", required = true) })
	public Result userVeri(@RequestParam String realName, @RequestParam String idNo) {
		return Result.wrapSuccess("尚未实现");
	}

	@RequestMapping(value = "/veriBank", method = { RequestMethod.POST, RequestMethod.GET })
	@ApiOperation(value = "银行卡三要素验证接口")
	@ApiImplicitParams({ @ApiImplicitParam(name = "realName", value = "真实姓名", dataType = "String", required = true),
			@ApiImplicitParam(name = "idNo", value = "身份证号码", dataType = "String", required = true),
			@ApiImplicitParam(name = "cardNo", value = "银行卡号", dataType = "String", required = true) })
	public Result bankInfoThreeElementVeri(@RequestParam String realName, @RequestParam String idNo,
			@RequestParam String cardNo) {
		return Result.wrapSuccess("尚未实现");
	}

}
